import request from '@/utils/request'

export default {
  getFavorites() {
    return request.get('/favorites/list')
  },
  addFavorite(goodsId) {
    return request.post('/favorites/add', { goodsId })
  },
  removeFavorite(goodsId) {
    return request.delete(`/favorites/remove/${goodsId}`)
  }
}